package org.js.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.js.student.mapper.RepetitionRecordFormMapper;
import org.js.student.domain.RepetitionRecordForm;
import org.js.student.service.IRepetitionRecordFormService;

/**
 * 留级管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-08
 */
@Service
public class RepetitionRecordFormServiceImpl implements IRepetitionRecordFormService 
{
    @Autowired
    private RepetitionRecordFormMapper repetitionRecordFormMapper;

    /**
     * 查询留级管理
     * 
     * @param id 留级管理主键
     * @return 留级管理
     */
    @Override
    public RepetitionRecordForm selectRepetitionRecordFormById(Long id)
    {
        return repetitionRecordFormMapper.selectRepetitionRecordFormById(id);
    }

    /**
     * 查询留级管理列表
     * 
     * @param repetitionRecordForm 留级管理
     * @return 留级管理
     */
    @Override
    public List<RepetitionRecordForm> selectRepetitionRecordFormList(RepetitionRecordForm repetitionRecordForm)
    {
        return repetitionRecordFormMapper.selectRepetitionRecordFormList(repetitionRecordForm);
    }

    /**
     * 新增留级管理
     * 
     * @param repetitionRecordForm 留级管理
     * @return 结果
     */
    @Override
    public int insertRepetitionRecordForm(RepetitionRecordForm repetitionRecordForm)
    {
        return repetitionRecordFormMapper.insertRepetitionRecordForm(repetitionRecordForm);
    }

    /**
     * 修改留级管理
     * 
     * @param repetitionRecordForm 留级管理
     * @return 结果
     */
    @Override
    public int updateRepetitionRecordForm(RepetitionRecordForm repetitionRecordForm)
    {
        return repetitionRecordFormMapper.updateRepetitionRecordForm(repetitionRecordForm);
    }

    /**
     * 批量删除留级管理
     * 
     * @param ids 需要删除的留级管理主键
     * @return 结果
     */
    @Override
    public int deleteRepetitionRecordFormByIds(Long[] ids)
    {
        return repetitionRecordFormMapper.deleteRepetitionRecordFormByIds(ids);
    }

    /**
     * 删除留级管理信息
     * 
     * @param id 留级管理主键
     * @return 结果
     */
    @Override
    public int deleteRepetitionRecordFormById(Long id)
    {
        return repetitionRecordFormMapper.deleteRepetitionRecordFormById(id);
    }

    @Override
    public List<RepetitionRecordForm> findRepetitionList(RepetitionRecordForm repetitionRecordForm) {
        return repetitionRecordFormMapper.findRepetitionList(repetitionRecordForm);
    }
}
